Skip to content

feat: add loadAgentBOMSchema() and loadMCPPostureSchema() named exports - #155

Merged
telleroutlook merged 1 commit into
mainfrom
feat/agentbom-mcp-posture-named-exports
Jul 29, 2026
Merged

feat: add loadAgentBOMSchema() and loadMCPPostureSchema() named exports#155
telleroutlook merged 1 commit into
mainfrom
feat/agentbom-mcp-posture-named-exports

Conversation

@telleroutlook

Copy link
Copy Markdown
Contributor

Adds two named convenience functions so consumers can load AgentBOM and MCP Posture schemas without memorising registry ids.

Prerequisite for agent-trust-infra eliminating relative-path readFileSync calls. Consumers can now do:

All 18 wasmagent-protocol tests pass.

Adds two named convenience functions to the public API so consumers
can load the AgentBOM and MCP Posture schemas without memorising their
registry ids:

  import { loadAgentBOMSchema, loadMCPPostureSchema } from '@wasmagent/protocol'

Both simply delegate to getSchema('agentbom') / getSchema('mcp-posture'),
so they pick up the bundled canonical JSON files at runtime with no
extra I/O or path resolution required.

This is a prerequisite for agent-trust-infra removing its relative-path
readFileSync('../../../specs/...') calls and consuming schemas directly
from this package, eliminating the last duplicate schema copy.
@telleroutlook
telleroutlook merged commit c999c09 into main Jul 29, 2026
3 checks passed
@telleroutlook
telleroutlook deleted the feat/agentbom-mcp-posture-named-exports branch July 29, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant